import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listIn(query) {
  return request({
    url: '/wm/defective/in/list',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getIn(serialNum) {
  return request({
    url: '/wm/defective/in/' + serialNum,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addIn(data) {
  return request({
    url: '/wm/defective/in',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateIn(data) {
  return request({
    url: '/wm/defective/in',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delIn(serialNum) {
  return request({
    url: '/wm/defective/in/' + serialNum,
    method: 'delete'
  })
}
// 同步
export function defectiveInSync() {
  return request({
    url: '/wm/defective/in/sync',
    method: 'get'
  })
}
